package io.github.biezhi.elves.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.github.biezhi.elves.credit.model.CompNameList;
import io.github.biezhi.elves.credit.model.CreditReport;
import io.github.biezhi.elves.mapper.CreditReportMapper;
import io.github.biezhi.elves.service.CreditReportService;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Service
public class CreditReportServiceImpl implements CreditReportService {
	
	@Autowired
	private CreditReportMapper creditReportMapper;

	@Override
	public List<CompNameList> queryCompNameList(Integer num) {
		return creditReportMapper.queryCompNameList(num);
	}

	@Override
	public void updateCompNameListState(String compId, Integer state) {
		creditReportMapper.updateCompNameListState(compId, state);
	}

	@Override
	public void insertCreditReport(CreditReport creditReport) {
		creditReportMapper.insertCreditReport(creditReport);
	}

}
